//
//  RegisterView.m
//  豆瓣HW
//
//  Created by dllo on 15/11/26.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RegisterView.h"

@implementation RegisterView

- (void)dealloc
{
    [_label1 release];
    [_label2 release];
    [_label3 release];
    [_label4 release];
    [_label5 release];
    [_textF1 release];
    [_textF2 release];
    [_textF3 release];
    [_textF4 release];
    [_textF5 release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubviews];
    }
    return self;
}

- (void)createSubviews
{
    self.backgroundColor = [UIColor whiteColor];
    
    self.label1 = [[UILabel alloc] initWithFrame:CGRectMake(50, 130, 80, 30)];
    self.label1.text = @"用户名:";
    [self addSubview:self.label1];
    [_label1 release];
    
    self.label2 = [[UILabel alloc] initWithFrame:CGRectMake(50, self.label1.frame.origin.y + self.label1.frame.size.height + 30, 80, 30)];
    self.label2.text = @"密码:";
    [self addSubview:self.label2];
    [_label2 release];
    
    self.label3 = [[UILabel alloc] initWithFrame:CGRectMake(50, self.label2.frame.origin.y + self.label2.frame.size.height + 30, 80, 30)];
    self.label3.text = @"确认密码:";
    [self addSubview:self.label3];
    [_label3 release];
    
    self.label4 = [[UILabel alloc] initWithFrame:CGRectMake(50, self.label3.frame.origin.y + self.label3.frame.size.height + 30, 80, 30)];
    self.label4.text = @"邮箱:";
    [self addSubview:self.label4];
    [_label4 release];
    
    self.label5 = [[UILabel alloc] initWithFrame:CGRectMake(50, self.label4.frame.origin.y + self.label4.frame.size.height + 30, 80, 30)];
    self.label5.text = @"联系方式:";
    [self addSubview:self.label5];
    [_label5 release];
    
    self.textF1 = [[UITextField alloc] initWithFrame:CGRectMake(self.label1.frame.origin.x + self.label1.frame.size.width + 40, self.label1.frame.origin.y, 180, 30)];
    self.textF1.placeholder = @"请输入用户名";
    self.textF1.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.textF1];
    [_textF1 release];
    
    self.textF2 = [[UITextField alloc] initWithFrame:CGRectMake(self.label2.frame.origin.x + self.label2.frame.size.width + 40, self.label2.frame.origin.y, 180, 30)];
    self.textF2.placeholder = @"请输入密码";
    self.textF2.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.textF2];
    [_textF2 release];
    
    self.textF3 = [[UITextField alloc] initWithFrame:CGRectMake(self.label3.frame.origin.x + self.label3.frame.size.width + 40, self.label3.frame.origin.y, 180, 30)];
    self.textF3.placeholder = @"再次输入密码";
    self.textF3.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.textF3];
    [_textF3 release];
    
    self.textF4 = [[UITextField alloc] initWithFrame:CGRectMake(self.label4.frame.origin.x + self.label4.frame.size.width + 40, self.label4.frame.origin.y, 180, 30)];
    self.textF4.placeholder = @"请输入邮箱";
    self.textF4.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.textF4];
    [_textF4 release];
    
    self.textF5 = [[UITextField alloc] initWithFrame:CGRectMake(self.label5.frame.origin.x + self.label5.frame.size.width + 40, self.label5.frame.origin.y, 180, 30)];
    self.textF5.placeholder = @"请输入联系方式";
    self.textF5.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.textF5];
    [_textF5 release];
    


}



@end
